import request from '@/utils/request'

// 查询详情
export function getListInfo(query) {
  return request({
    url: '/car/carIndex/getListInfo',
    method: 'get',
    params: query
  })
}


// 新增

export function addCarIndex(data) {
  return request({
    url: '/car/carIndex',
    method: 'post',
    data: data
  })
}

// 列表信息
export function getDataList(query) {
  return request({
    url: '/car/carIndex/list',
    method: 'get',
    params: query
  })
}

// /car/carIndex/list

// 查询加速折旧费方案配置列表
export function getDataListConfig(query) {
  return request({
    url: '/system/depreciationConfig/list',
    method: 'get',
    params: query
  })
}


//保存加速折旧费方案配置
export function submitDepreciationConfig(data) {
  return request({
    url: `/system/depreciationConfig`,
    method: 'PUT',
    data
  })
}